<tr class="edit">
	<td>Name:</td>
	<td><input type="text" name="name" id="name" value="<%= current_user.name %>"></td>
</tr>
<tr class="edit">
	<td>Email:</td>
	<td><input type="text" name="email" id="email" value="<%= current_user.email %>"></td>
</tr>
<tr class="edit">
	<td>Avatar:</td><% paintings = Painting.where(:user_id => current_user.id)
			    	   if paintings.count == 1
			    	   	painting = paintings[0]
			    	   else
			    	   	painting = nil
			    	   end
			    	%>
	<td><input type="text" name="remote_image_url" id="remote_image_url" value="<%= painting.image_url if !painting.nil? and painting.image?%>"></td>
</tr>
<input type="hidden" name="user_id" id="user_id" value="<%= current_user.id %>">
